import { 
    CHANGEADMINLOGINACTIVATE, 
    CHANGEAADMINBASEINFOACTIVATE,
    ADMINLOGINSAGA,
    ADMINLOGOUTSAGA,
    ADMINGETDATASAGA,
    ADMINCHANGETASKAUDITSAGA,
} from "../constants";

// 启动登录窗口
export const ChangeAdminLoginActivate = (obj) => ({
    type: CHANGEADMINLOGINACTIVATE,
    data: obj
})

// 修改管理员用的数据
export const ChangeAdminBaseInfoActivate = (obj) => ({
    type: CHANGEAADMINBASEINFOACTIVATE,
    data: obj
})

// 管理员登录
export const AdminLoginSaga = (obj) => ({
    type: ADMINLOGINSAGA,
    data: obj
})

// 管理员退出登录
export const AdminLogoutSaga = (obj) => ({
    type: ADMINLOGOUTSAGA,
    data: obj
})

// 管理员获取数据
export const AdminGetDataSaga = (obj) => ({
    type: ADMINGETDATASAGA,
    data: obj
})

// 管理员修改任务状态
export const AdminChangeTaskAuditSaga = (obj) => ({
    type: ADMINCHANGETASKAUDITSAGA,
    data: obj
})
